package org.springframework.context.support;

import org.springframework.context.ApplicationContext;
import org.springframework.lang.Nullable;

import java.io.IOException;

/**
 * @className：ClassPathXmlApplicationContext
 * @description:
 * @author: xiaohuihui
 * @createDate: 2021/8/29
 * @version: 1.0
 */
public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext {

    /**
     * 创建一个新的ClassPathXmlApplicationContext，加载定义
     * 给定的XML文件并自动刷新上下文
     * @param configLocation
     */
    public ClassPathXmlApplicationContext(String configLocation) {
        this(new String[] {configLocation}, true, null);
    }

    public ClassPathXmlApplicationContext(String[] configLocations, boolean refresh, @Nullable ApplicationContext parent) {
        super(parent);
        setConfigLocations(configLocations);
    }



    @Override
    public void close() throws IOException {

    }
}
